import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Child from '../views/Child.vue'


Vue.use(VueRouter)

const routes = [{
  path: '/',
  component: Home,
  meta: { index: 1 }
}, {
  path: '/Child',
  component: Child,
  meta: { index: 2 }
},

]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router